package cn.wolfcode.luowowo.common.query;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

@Getter
@Setter
public class QueryObject1 implements Serializable {
    private int currentPage=1; //当前页
    private int pageSize=6; //每页显示条数

    private String keyword;

    public String getKeyword(){
        if(keyword==null || "".equals(keyword.trim())){
            return null;
        }
        return keyword;
    }

    public int getIndex(){
        return (currentPage -1) * pageSize;
    }
}
